Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow empty header values for compatibility with STOMP 1.1 and 1.2 #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OtterCode
Copy link

@OtterCode OtterCode commented Jan 2, 2024

In STOMP 1.1 and 1.2, header values are defined as:

header-value = *<any OCTET except CR or LF or ":">

Where previously they were defined as:

header-value = 1*<any CHAR except LF>

Due to a quirk of the not_line_ending and terminated combinators, the parser was failing on empty header values, of the form correlation-id:\n, due to the not_line_ending combinator not having enough input.

This solution adds a single fallback tag to the terminated call, allowing it to gracefully parse empty values as "".

… 1.1 and 1.2

style: break terminated call across multiple lines
@OtterCode
Copy link
Author

Also, I know you were looking for maintainers. I might be willing to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant